<!DOCTYPE html>
<html>

<head>
    <title>校友企业库 - {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head" />
</head>

<body class="bg-light page-ent">
    <include file="public@nav" />
    <section class="bg-light py-4">
        <div class="container">
            <div class="text-center text-dark">
                <h5 class="">校友企业</h5>
                <p class="mb-0">
                    本社区为非官方社区，欢迎大家自由选择发言。
                    <br>建立校友名片录，旨在帮助校友间合作与交流。
                    <br>
                    <br>
                     <a href="{:cmf_url('schain/enterprise/add')}" class="btn btn-primary"><i class="fa fa-id-card-o"></i> 完善我的企业</a>
                </p>
            </div>
        </div>
    </section>
    <section class="container mb-3">
        <div class="row">
            <div class="col-2">
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        <div class="text-center">
                            关注微信公众号
                            <br><span class="badge badge-info">新梅陇客栈</span>
                            <img src="/assets/dist/images/qrcode.jpg" class="img-fluid">
                        </div>
                    </div>
                </div>
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        <h6>关于社区</h6>
                        <ul class="list-unstyled">
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>40))}">联系我们</a></li>
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>39))}">关于我们</a></li>
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>39))}">近期活动</a></li>
                        </ul>
                        <h6>快捷联系</h6>
                        <ul class="list-unstyled m-0">
                            <li><a href="tel:(+86) 159-2158-7537"><i class="fa fa-phone"></i> 159-2158-7537</a></li>
                            <li><a href="mailto:supu@vip.qq.com"><i class="fa  fa-envelope-o"></i> supu@vip.qq.com</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-7">
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        <form class="well form-inline margin-top-20" method="post" action="{:url('schain/Index/index')}">
                            分类检索:
                            <select class="form-control form-control-sm mx-2" name="category">
                                <option value='0'>全部</option>{$category_tree|default=''}
                            </select>
                            关键字检索:
                            <input type="text" class="form-control form-control-sm " name="keyword" value="{$keyword|default=''}" placeholder="请输入关键字...">
                            <input type="submit" class="btn btn-sm btn-info mx-2" value="搜索" />
                            <a class="btn btn-sm btn-light" href="{:url('schain/Index/index')}">清空</a>
                        </form>
                    </div>
                </div>
                <div class="card border-0">
                    <div class="card-body">
                        <p class="mb-0">
                            <span class="font-weight-bold">排序</span> 
                            <a class="mx-2" href="">最新上线</a>
                            <a class="" href="">人气最高</a>
                            <span class="pull-right">共 {$total} 家企业</span>
                        </p>
                        <hr>
                        <div class="row tz-gallery">
                            <foreach name="ents" item="vo">
                                <div class="col-4">
                                    <div class="thumbnail">
                                        <a class="lightbox" href="{:cmf_url('schain/Enterprise/index',array('id'=>$vo['id']))}">
                                            <div class="cover">
                                                <empty name="vo.more.thumbnail">
                                                    <img src="/assets/dist/images/default-thumbnail.png" class="img-fluid" alt="{$vo.ent_title}">
                                                    <else/>
                                                    <img src="{:cmf_get_image_url($vo.more.thumbnail)}" class="img-fluid" alt="{$vo.ent_title}">
                                                </empty>
                                            </div>
                                        </a>
                                        <div class="caption p-2">
                                            <h6 style="height: 40px;"><a href="{:cmf_url('schain/Enterprise/index',array('id'=>$vo['id']))}">
                                                {$vo.ent_title}</a></h6>
                                            <p style="height: 40px;">{:mb_substr($vo.ent_summary,0,20,'utf-8')}...</p>
                                            <div class="ent-tag">
                                                <ul class="list-unstyled mb-0">
                                                    <li class="text-truncate d-block"><i class="fa fa-address-card-o"></i>
                                                        <foreach name="vo.categories" item="voo">
                                                            {$voo.name},
                                                        </foreach>{$vo.ent_keywords}</li>
                                                    <li><i class="fa fa-map-marker"></i> {$vo.ent_location|default="未设置"}</li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </foreach>
                        </div>
                        <ul class="pagination mb-0">{$page|default=''}</ul>
                    </div>
                </div>
            </div>
            <div class="col-3 ">
                <div class="sticky-top">
                    <div class="card border-0 user-card ">
                        <img class="card-img-top" src="/assets/dist/images/card_bg.jpg" alt="Card image cap">
                        <div class="card-body">
                            <div class="text-center">
                                <div style="margin-top:-60px" class="mx-auto">
                                    <empty name="$user.avatar">
                                        <a href="{:url('user/profile/avatar')}">
                                            <img src="/assets/dist/images/headicon_128.png" class="headicon rounded-circle shadow-sm" alt="{$user.user_nickname}">
                                        </a>
                                        <else/>
                                        <a href="{:url('user/profile/center')}">
                                            <img src="{:cmf_get_user_avatar_url($user.avatar)}" class="headicon rounded-circle shadow-sm" alt="{$user.user_nickname}">
                                        </a>
                                    </empty>
                                </div>
                                <h6 class="my-2">{$user.user_nickname}</h6>
                                <p class="card-text">{$user.signature|default="这家伙有点懒，什么都没留下"}</p>
                                <if condition="$user eq false">
                                    <a class="btn btn-info btn-sm" href="{:cmf_url('user/Login/index')}">立即登录</a>
                                </if>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <include file="public@footer" />
    <include file="public@scripts" />
</body>

</html>